package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.OldmanDevice;
import com.csun.cmny.provider.pojo.OldmanDeviceKey;

import java.util.List;

public interface OldmanDeviceMapper {
    int deleteByPrimaryKey(OldmanDeviceKey key);

    int insert(OldmanDevice record);

    int insertSelective(OldmanDevice record);

    OldmanDevice selectByPrimaryKey(OldmanDeviceKey key);

    int updateByPrimaryKeySelective(OldmanDevice record);

    int updateByPrimaryKey(OldmanDevice record);
    /**
     * 批量添加
     * author:liqian
     * date:2018-11-16 10:59
     */
    int insertBatch(List<OldmanDevice> oldmanDeviceList);
    /**
     * 根据老人id解除与设备的绑定
     * author:liqian
     * date:2018-11-16 14:20
     */
    int delOldDeviceByOid(Integer oldmanId);
    /**
     * 查询老人绑定的设备列表
     * author:liqian
     * date:2018-11-16 17:31
     */
    List<OldmanDevice> sltOldDeviceByOid(Integer oldmanId);
}